//
//  TypeModel.h
//  LiWuShuo
//
//  Created by 袁小航 on 14/11/14.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface TypeModel : NSObject

@property(nonatomic, retain) NSString *typeTopicImageUrl;
@property(nonatomic, retain) NSString *typeTitle;

- (instancetype)initWithTopicAttributes:(NSDictionary *)attributes;
+ (NSURLSessionDataTask *)typeTopicWithBlock:(void (^)(NSArray *posts, NSError *error))block;


@property(nonatomic, retain) NSString *icon_url;
@property(nonatomic, retain) NSString *name;
@property(nonatomic, assign) NSInteger sId;

- (instancetype)initWithPHAttributes:(NSDictionary *)attributes;
+ (NSURLSessionDataTask *)typePHWithBlock:(void (^)(NSArray *posts, NSError *error))block;

@end
